package com.yanmushi.ms.oauthserver.controller;

import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther yinlei
 * @date 2018/1/23
 * @since 1.0.0
 */
@RestController
@RequestMapping("user")
public class UserController {

    @RequestMapping("get")
    public Object get() {
        return SecurityContextHolder.getContext().getAuthentication();
    }
}
